/**
 * Copyright 2015 Qiyi Inc. All rights reserved.
 * 
 * @file:   Channel.Config.js
 * @path:   js-src/StatisticOcr/
 * @desc:   StatisticOcr公共配置集合，键值对象
 *          一级键名大写，之间名采用驼峰式
 * @author: zhang@qiyi.com
 * @date:   2016-03-28
 */
///import js-src/lib/
///import js-src/com/
qui(function(require, exports, module){
        StatisticSty2Percent.Config = $.extend({}, Ancestor.Config, {

            TABLE_COLMODEL_CONFIG: {
                channelId: {
                    name: 'channelId',
                    index:'channelId',
                    title: false,
                    width: 80,
                    align: 'center',
                    hidden: true,
                    sortable: false
                },
                channelName: {
                    name: 'channelName',
					index:'channelName',
                    title: false,
                    width: 80,
				    align: 'center',
					sortable: false
                },
                categoryName: {
                    name: 'categoryName',
                    index: 'categoryName',
                    width: 80,
                    align: 'center',
                    title: false,
                    sortable: false
                },
                albumName: {
                    name: 'albumName',
					index:'albumName',
                    title: false,
                    width: 80,
				    align: 'center',
					sortable: false
                },
                headerCompletePercent: {
                    name: 'headerCompletePercent',
                    index:'headerCompletePercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                headerIncompletePercent: {
                    name: 'headerIncompletePercent',
                    index:'headerIncompletePercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                headerFaultPercent: {
                    name: 'headerFaultPercent',
                    index:'headerFaultPercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                lastCompletePercent: {
                    name: 'lastCompletePercent',
                    index:'lastCompletePercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                lastIncompletePercent: {
                    name: 'lastIncompletePercent',
                    index:'lastIncompletePercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                lastFaultPercent: {
                    name: 'lastFaultPercent',
                    index:'lastFaultPercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                adCompletePercent: {
                    name: 'adCompletePercent',
                    index:'adCompletePercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                adIncompletePercent: {
                    name: 'adIncompletePercent',
                    index:'adIncompletePercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                adFaultPercent: {
                    name: 'adFaultPercent',
                    index:'adFaultPercent',
                    title: false,
                    width: 120,
                    align: 'center',
                    sortable: false
                },
                sty2: {
                    align: 'center',
                    formatter: function(v, o, r) {
                        return StatisticSty2Percent.Util.formatter.sty2(v, r)
                    }
                }
            },

            TABLE: { //列表配置
                url: '/api/statisticSty2Percent/list',
				//datatype:"jsonp",
				multiselect: false,
					
				loadtext:'加载中...',
				loadui:'block',

                loadBeforeSend:function(xhr, settings){
                    var auth = Ancestor.Util.getAuth(Ancestor.Config.EPG_AUTH.list);
                    xhr.setRequestHeader('Sign',auth.sign);
                    xhr.setRequestHeader("Time",auth.clientTime);
                    xhr.setRequestHeader("From",auth.from);
                    return true;
                },
				
				prmNames :{
					 page:"pageNo",
					 rows:"pageSize",    
				 },
                jsonReader:{
                    root:"data"
                },
                colNames: ["频道ID","专辑名称", "频道","所属电视台","片头完全准确率（数）","片头部分准确率（数）","片头不准确率（数）","片尾完全准确率（数）","片尾部分准确率（数）","片尾不准确率（数）","广告完全准确率（数）","广告部分准确率（数）","广告不准确率（数）","详细数据"],

                colModel: ['channelId','albumName', 'categoryName','channelName','headerCompletePercent','headerIncompletePercent','headerFaultPercent','lastCompletePercent','lastIncompletePercent','lastFaultPercent','adCompletePercent','adIncompletePercent','adFaultPercent','sty2']
            },

        });
	}
);